Release 10.1A: OpenEdge Development:
Programming Interfaces
Example of creating an output XML file
The following sample program creates an XML file consisting of all fields in all the customer records where the cust-num is less than “5". You must use the
SAVE( )method on theX-DOCUMENTobject in order to create the actual XML file:
A partial output of the above program appears below. Note that the carriage returns and indentations have been entered for readability; the actual file contains one long string:
Writing an XML file to a MEMPTR, a stream, or a LONGCHAR
You can also write an XML file to a
MEMPTRor to an output stream or to a LONGCHAR as the following code fragments demonstrate.The following fragment shows saving an XML file to a
MEMPTR:
The following fragment shows saving an XML file to a
LONGCHAR:
The following fragment displays saving an XML file to an output stream:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |